import pandas as pd 

df = pd.DataFrame()
print(df)

dict = {
    'name':['Tom','Bob','Mary','James'],
    'age':[18,30,25,40],
    'city':['Beijing','Shanghai','Guangzhou','Shenzhen']
}
df = pd.DataFrame(dict)
print(df)


df = pd.DataFrame([['Tom',18,'Beijing'],['Bob',30,'Shanghai'],['Mary',25,'Guangzhou'],['James',40,'Shenzhen']],columns=['name','age','city'])
print(df)